﻿using SafoverWpfFw;
using System;
using System.Globalization;
using System.Windows;

namespace Safover.LidarCollector.Converter
{
    public class NullImageConverter : BaseValueConverter<NullImageConverter>
    {
        public override object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return value == null ? DependencyProperty.UnsetValue : value;
        }

        public override object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return value == null ? DependencyProperty.UnsetValue : value;
        }
    }
}
